package com.kb.erp.mapper.pg;


import com.baomidou.dynamic.datasource.annotation.DS;
import com.kb.erp.entity.pcbout.MaterialDetail;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
@DS("slave-1")
public interface StockMapper {

    @Select("SELECT 客户代码 FROM view_orders WHERE 订单号 = #{orderno}")
    String findCustCode(@Param("orderno") String orderno);

    List<MaterialDetail> findMaterialDetailsByK3Nos(@Param("k3nos") List<String> k3nos);

    List<MaterialDetail>   findMinByK3Nos(@Param("k3nos") List<String> k3nos);

}
